package com.yt.app.core.model;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * AppMenu
 */
@ApiModel(value = "Menu", description = "自定义菜单")
public class AppMenu implements Serializable {
    @ApiModelProperty(value = "id", required = true)
    private Long id;
    @ApiModelProperty(value = "上级按钮ID", required = true)
    private Long appIconId;
    @ApiModelProperty(value = "标题", required = true)
    private String title;
    @ApiModelProperty(value = "图标地址", required = false)
    private String image;
    @ApiModelProperty(value = "跳转链接", required = true)
    private String link;
    @ApiModelProperty(value = "排序", hidden = true)
    @JSONField(serialize=false)
    private Integer sort;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Long getAppIconId() {
        return appIconId;
    }

    public void setAppIconId(Long appIconId) {
        this.appIconId = appIconId;
    }
}
